﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileClassList.aspx.cs" Inherits="DreamBox.Admin.File.FileClassList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>分类管理列表</title>
      <script type="text/javascript" src="/tools/js/jquery-1.9.1.min.js"></script>


 <link href="/style/default/css/style.css" rel="stylesheet" type="text/css" />

    <link href="/style/default/css/tb.css" rel="stylesheet" />

     <style type="text/css">
        .MSelectItem{
	        background:#79c7f3;
	        background-color:#79c7f3;
        }
        .MItem
        {
            background:White;
	        background-color:White;
        }
    </style>
    <script type="text/javascript">
        //全选/反选
        function Check(che) {
            var gv = document.getElementById("tablelist");
            for (var i = 2; i < gv.rows.length; i++) {
                gv.rows[i].cells[0].getElementsByTagName("input")[0].checked = che.checked;
            }
        }
        //颜色选项
        function SelectItem(item) {
            $("#" + item.id).attr("class", "MSelectItem");
        }
        function UnSelectItem(item) {
            $("#" + item.id).attr("class", "");
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="0" border="0" class="table table-bordered" id="tablelist">
          <tr>
			<td colspan="6">
               <a class="" href="GroupAdd.aspx">添加用户组</a>
            </td>
			</tr>
			<tr>
				<th>
                    <asp:CheckBox ID="CheckBoxList" runat="server" onclick="Check(this)" ToolTip="选项"/>
               </th>
               <th>分类ID</th>
               <th>分类名称</th>
                <th>排序</th>
               <th>状态</th>
               <th>操作</th>
			</tr>

             <asp:Repeater ID="RepeaterList" runat="server">
            <ItemTemplate>
			<tr onmouseover="SelectItem(this)"  onmouseout="UnSelectItem(this)" id="Item<%#Eval("CID") %>" >
				<td>
                    <asp:CheckBox ID="CheckBoxSelect" runat="server" ToolTip='<%#Eval("CID") %>' />
                </td>
                 <td>
                    <%#Eval("CID") %>
                </td>
                <td>
                    <%#Eval("CName")%>
                </td>
                 <td>
                    <%#Eval("Sort") %>
                </td>
                 
                <td>
                    <%#bool.Parse(Eval("IsStatus").ToString())?"启用":"禁止" %>
                </td>
                
                <td>
                    <a class="" href="UrlClassUpdate.aspx?CID=<%#Eval("CID") %>">编辑</a>
                     <asp:LinkButton ID="LinkBtnDel" CssClass="" runat="server" 
                    onclick="LinkBtnDelete_Click" OnClientClick="return confirm('确认执行删除操作?')" ToolTip='<%#Eval("CID") %>' >删除</asp:LinkButton>
                </td>
			</tr>
           
            </ItemTemplate>
            </asp:Repeater>
        </table>
    </form>
</body>
</html>